<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<mesoBoard.Data.Role>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<% IEnumerable<User> UsersInGroup = ViewData["Users"] as IEnumerable<User>; %>
<fieldset>
    <legend>Group: <%= Model.Rank != null ? "<span style='color:" + Model.Rank.Color + "'>" + Model.Name + "</span>" : Model.Name%></legend>
    
    <dl>
        <dt>Group Name:</dt>
        <dd><%= Model.Name %></dd>
        
        <dt>Total Members:</dt>
        <dd><%= Model.InRoles.Count %></dd>
    </dl>
        
    <table class="form_table">
        <tr>
            <th>Username</th>
        </tr>
        
        <% foreach(User u in UsersInGroup){ %>
        
        <tr>
            <td><%= Html.UsernameLink(u, false) %></td>
        </tr>
        
        <% } %>       
    </table>
    
    <div style="margin-top: 5px;">
        <% Html.RenderPartial("Paging", ViewData["Paging"]); %>
    </div>
    
</fieldset>

</asp:Content>
